module.exports = {
    EXPIRE_TIME: 60 * 60,

    jwtConfig: {
        secret: '1qazxsw23edcvfr4',
        expire: 60 * 60
    },

    authType: {
        apiAuth: {
            value: 1,
            name: 'restful api auth'
        },
        routerAuth: {
            value: 2,
            name: 'admin router auth'
        },
        oneLevelRouter: {
            value: 1,
            name: 'one level admin menu'
        },
        twoLevelRouter: {
            value: 2,
            name: 'tow level admin menu'
        }
    },

    userType: {
        user: {
            value: 1,
            name: 'app user'
        },
        admin: {
            value: 10,
            name: 'admin user'
        },
        supremo: {
            value: 20,
            name: 'supremo user'
        }
    },

    roleType: {
        admin: {
            value: 1,
            name: 'admin role'
        },
        appRole: {
            value: 2,
            name: 'app role'
        }
    },

    grantType: {
        phone: {
            value: 1,
            name: 'phone grant'
        },
        email: {
            value: 2,
            name: 'email grant'
        },
        wechat: {
            value: 3,
            name: 'wechat grant'
        }
    },

    loginType: {
        passwordLogin: 1,
        userIdLogin: 2,
        openIdLogin: 3
    }
};